package com.learning.dao;

import com.learning.pojo.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    //查询全部用户
    List<User> getUserList();

    //根据id查客户
    User getUserById(int id);

    //添加用户
    int insertUser(User user);

    int insertUserByMap(Map<String, Object> map);

    //根据id删除用户
    int deleteUerByid(int id);

    //修改用户
    int updateUser(User user);

    //模糊查询
    List<User> getUserByNameLike(String name);

    //分页查询，每页固定5人
    List<User> getUserListLimit5(int head);


}
